<template>
  <div>
    <el-row :gutter="20">
            <el-col :span="24">
                <el-card shadow="hover" class="mgb20" style="height: 680px">
                    <div class="user-info">
                        <img src="../../assets/img/logo.png" class="user-avator" alt />
                        <div class="user-info-name">内蒙古化工职业学院</div>
                    </div>
                    <div class="user-info-wrap">
                        <div class="user-info-cont">
                            <div>用户名</div>
                            <div>{{ userName }}</div>
                        </div>
                        <div class="user-info-cont">
                            <div>创建时间</div>
                            <div>{{ createTime }}</div>
                        </div>
                    </div>
                </el-card>
            </el-col>
      </el-row>
        <el-row :gutter="20">
            <el-col :span="24">
                <el-card shadow="hover" class="sub-title">
                    <div>内蒙古化工职业技术学院-火灾地震应急演练元宇宙</div>
                </el-card>
            </el-col>
        </el-row>
  </div>
</template>

<script>
  export default {
    computed: {
      userName: {
        get () { return this.$store.state.user.name }
      },
      createTime: {
        get () { return this.$store.state.user.createTime }
      }
    }
  }
</script>

<style scoped>
.el-row {
    margin-bottom: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    padding-bottom: 20px;
    justify-content: center;
    flex-direction: column;
}

.user-info-name {
  margin-top: 20px;
  font-family: STXingkai;
  font-size: 24px;
}

.user-avator {
    width: 364px;
    height: 366px;
}

.user-info-wrap {
	padding: 20px 0;
  background: #f0f0f0;
	border-radius: 4px;
}

.user-info-cont {
    padding-left: 50px;
    flex: 1;
    font-size: 14px;
    color: #999;
}

.user-info-cont div:first-child {
    font-size: 22px;
    color: #222;
    line-height: 40px;
}

.user-info-cont div:last-child {
    margin-bottom: 20px;
    color: #3d538d;
}

.mgb20 {
    margin-bottom: 20px;
}
.sub-title {
    background: #f0f0f0;
}
.sub-title div {
    text-align: center;
    width: 100%;
    letter-spacing: 6px;
}
</style>

